package com.cn.bopu.common.upms.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:平台应用表
 * @author 史绍波
 * @since 2020-01-09
 */
@ApiModel(value ="平台应用表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_platform")
public class SysPlatform implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "平台code")
    @TableId(value = "platform_code", type = IdType.UUID)
    private String platformCode;
    @ApiModelProperty(value = "平台名称")
    @TableField("platform_name")
    private String platformName;
    @ApiModelProperty(value = "平台描述")
    @TableField("platform_describe")
    private String platformDescribe;
    @ApiModelProperty(value = "平台地址")
    @TableField("url")
    private String url;
    @ApiModelProperty(value = "平台状态：0关闭，1正常")
    @TableField("state")
    private String state;
    @ApiModelProperty(value = "创建时间戳")
    @TableField("create_timestamp")
    private LocalDateTime createTimestamp;
    @ApiModelProperty(value = "更新时间戳")
    @TableField("update_timestamp")
    private LocalDateTime updateTimestamp;


    public static final String PLATFORM_CODE = "platform_code";

    public static final String PLATFORM_NAME = "platform_name";

    public static final String PLATFORM_DESCRIBE = "platform_describe";

    public static final String URL = "url";

    public static final String STATE = "state";

    public static final String CREATE_TIMESTAMP = "create_timestamp";

    public static final String UPDATE_TIMESTAMP = "update_timestamp";

}
